import {lazy} from "react";
import Home from '@/views/Home'

const routes = [{
    path:'/',
    name:'home',
    component:Home,
    meta:{
        title:'知乎日报-WebApp'
    }
    },{
        path:'/detail/:id',
        name:'detail',
        component:lazy(() => import('../views/Detail.jsx')),
        meta:{
            title:'新闻详情-知乎日报'
        }
    },{
        path:'/login',
        name:'login',
        component:lazy(() => import('../views/Login.jsx')),
        meta:{
            title:'登录/注册-知乎日报'
        }
    },{
        path:'/store',
        name:'store',
        component:lazy(() => import('../views/Store.jsx')),
        meta:{
            title:'我的收藏-知乎日报'
        }
    },{
    path:'/update',
    name:'update',
    component:lazy(() => import('../views/Update.jsx')),
    meta:{
        title:'修改个人信息-知乎日报'
    }
    },{
        path:'/user',
        name:'user',
        component:lazy(() => import('../views/User.jsx')),
        meta:{
            title:'个人中心-知乎日报'
        }
    },{
        path:'/404',
        name:'404',
        component:lazy(() => import('../views/Page404.jsx')),
        meta:{
            title:'404'
        }
    }]


export default routes
